package nc.impl.uapbd;

import nc.bs.dao.BaseDAO;
import nc.bs.dao.DAOException;
import nc.itf.uapbd.ICloudPartyBuildingMaintain;
import nc.jdbc.framework.SQLParameter;
import nc.uapbd.entity.CloudPartyBuildingLog;

public class CloudPartyBuildingMaintainImpl implements ICloudPartyBuildingMaintain{

	@Override
	public void insertLog_RequiresNew(CloudPartyBuildingLog cloudPartyBuildingLog) throws DAOException {
		StringBuffer sb = new StringBuffer();
		sb.append("insert into Cloud_Party_Building_Log(request_id,request_modules,request_context,success,message) values('" + cloudPartyBuildingLog.getRequest_id() + "',");
		sb.append("'" + cloudPartyBuildingLog.getRequest_modules() + "',");
		sb.append("'" + cloudPartyBuildingLog.getRequest_context() + "',");
		sb.append("'" + cloudPartyBuildingLog.getSuccess() + "',");
		sb.append("'" + cloudPartyBuildingLog.getMessage() + "') ");
		/*SQLParameter param = new SQLParameter(); 
		param.addParam(cloudPartyBuildingLog.getRequest_id());
		param.addParam(cloudPartyBuildingLog.getRequest_modules());
		param.addParam(cloudPartyBuildingLog.getRequest_context());
		param.addParam(cloudPartyBuildingLog.getSuccess());
		param.addParam(cloudPartyBuildingLog.getMessage());*/
		new BaseDAO().executeUpdate(sb.toString());
	}
}
